package cn.mazexal.dao;

import cn.mazexal.dbModel.ExamDO;
import cn.mazexal.dbModel.ExamQuestionRelationshipDO;
import cn.mazexal.dbModel.QuestionTagDO;
import cn.mazexal.dbModel.TagDO;
import cn.mazexal.excelModel.QuestionExcel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * User: Mazexal
 * Date: 2025/5/18
 */
public interface ExamDao {
    Integer getExamCount();

    void insertBatch(@Param("list") List<QuestionExcel> res);

    List<TagDO> getTagByNames(@Param("tags") List<String> tags,  @Param("examBankId")Long examBankId);

    void deleteByQuestionId(@Param("questionId") Long questionId,@Param("examBankId") Long examBankId);

    void batchInsertQuestionTags(@Param("list") List<QuestionTagDO> list);

    void batchInsertTags(@Param("list")List<TagDO> list);

    ExamDO getExamById(@Param("id") String id);


    void insertBatchRelationship(@Param("list") List<ExamQuestionRelationshipDO> relationshipDOList);
}
